package org.rockyang.shardingjdbc.mybatisplus.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.rockyang.shardingjdbc.mybatisplus.common.model.Order;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhenwq
 * @since 2023-05-05
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {

    Order selectByOrderId(@Param("orderId") Long orderId);

    Order selectByOrderIdAndUserId(@Param("orderId") Long orderId , @Param("userId") Long userId);

}
